package job;

import org.quartz.JobDetail;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.Trigger;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.scheduling.quartz.QuartzJobBean;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @Author zhang
 * @Date 2021/5/16 下午12:29
 * @Description
 * @Version 1.0
 **/
@Component
public class TestJob {
    @Scheduled(cron = "*/1 * * * * ?")
    public void test() {
        System.out.println(new Date());
    }
}
